package com.example.bootdemo.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.bootdemo.dao.UserDao;
import com.example.bootdemo.entity.MyUser;
import com.example.bootdemo.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author yy
 * @createTime 2022/8/1
 */
@Service
public class UserServiceImpl  extends ServiceImpl<UserDao, MyUser> implements UserService {
    @Resource
    private UserDao userDao;


    @Override
    public MyUser getUserByName(String userName) {
        return userDao.getUser(userName);
    }

}
